package com.zhuiyun.project.api.system.user.mapper;

import com.zhuiyun.project.api.system.user.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserRoleMapper {
    /**
      * @Author hyp
      * @Description 通过用户编号删除所对应的角色信息
      * @Date 2023/10/30 18:59
      * @Return int
      * @param userids
    */
    int deleteUserRole(Integer[] userids);
    /**
     * @Author hyp
     * @Description 通过用户编号删除所对应的角色信息
     * @Date 2023/10/30 18:59
     * @Return int
     * @param userId
     */
    int deleteUserRoleByUserId(Integer userId);
    int deleteUserRoleByRoleId(Long roleId);
    int batchUserRole(List<SysUserRole> list);

    int cancelAuthUser(SysUserRole userRole);

    int cancelAuthUserAll(Long roleId, Long[] userIds);
}
